package arithmetic1.test1;

import java.util.Scanner;

public class H {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int num=scanner.nextInt();
        scanner.close();
        if(num<=0 || num>20){
            return;
        }
        for(int i=0;i<num;i++){
            for(int j=0;j<num;j++){
                System.out.print("* ");
            }
            System.out.println();
        }
    }
}
